package com.trying.simpleioc.demo.service;

import com.trying.simpleioc.annotation.Inject;
import com.trying.simpleioc.annotation.Service;
import com.trying.simpleioc.demo.SchoolModel;

@Service
public class StudentService {

	@Inject
	private SchoolModel schoolModel;
	
	public void sayHello(){
		System.out.println("Hello,i am a student,my name is jakson. I'm from "+schoolModel.getSchoolName());
	}

}
